﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApplication1.ajax
{
    /// <summary>
    /// GetObject 的摘要说明
    /// </summary>
    public class GetObject : IHttpHandler
    {
        public class test 
        {
            public string state;
            public DateTime date;
        }
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string result = fastJSON.JSON.Instance.ToJSON(new
                {
                    state = "ok",
                    date = DateTime.Now,
                });
            context.Response.Write(result);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}